<template>
  <div class="edit">
    <!-- 导航条 -->
    <van-nav-bar title="编辑资料" left-arrow @click-left="$router.go(-1)" />
    <!-- 图片  -->
    <div class="userpic">
      <van-image
        width="100"
        height="100"
        round
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
      />
    </div>
    <!-- 列表 -->
    <van-cell-group>
      <van-cell title="姓名" value="昵称" is-link />
      <van-cell title="性别" value="男" is-link />
      <van-cell title="生日" value="2021-7-16" is-link />
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: 'edit'
}
</script>

<style lang="less">
.edit {
  .van-nav-bar__content {
    background-color: #0098fa;
    .van-icon-arrow-left,
    .van-nav-bar__title {
      color: #fff;
    }
  }
  .userpic {
    display: flex;
    height: 150px;
    align-items: center;
    justify-content: center;
  }
}
</style>
